package com.dishdex.menuhub.module.utils;

import java.util.HashMap;
import java.util.Map;

/**
 * ClassName:
 * Package: com.dishdex.menuhub.module.utils
 * Description:
 *
 * @Author:
 * @Create 2025/10/20 11:00
 * @Version 1.0
 */
public class ResponseCode {
    private static final Map<Integer, String> statusMap = new HashMap<Integer, String>();

    static {
        statusMap.put(1001, "OK");
        statusMap.put(1002, "没有登录哦~");
        statusMap.put(1010, "账号密码不匹配或账号不存在");

        //create user and forget password
        statusMap.put(2014, "账号尚未注册");

        //console error
        //article error
        statusMap.put(3051, "必填信息不能为空");
        statusMap.put(3052, "ID不正确");

        statusMap.put(4003, "没有权限");
        statusMap.put(4004, "连接超时");
    }

    public static String getMsg(Integer code) {
        return statusMap.get(code);
    }
}
